<?xml version="1.0" encoding="UTF-8"?>
<definitions
  xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
  xmlns:camunda="http://camunda.org/schema/1.0/bpmn"
  targetNamespace="Examples">

  <process id="process" isExecutable="true">

    <startEvent id="start" />

    <sequenceFlow sourceRef="start" targetRef="gtw" />

    <parallelGateway id="gtw" />

    <sequenceFlow sourceRef="gtw" targetRef="subprocess" />
    <subProcess id="subprocess">
      <startEvent id="innerStart" />
      <sequenceFlow sourceRef="innerStart" targetRef="innerTask" />
      <userTask id="innerTask" />
      <sequenceFlow sourceRef="innerTask" targetRef="innerEnd" />
      <endEvent id="innerEnd" />
    </subProcess>
    <sequenceFlow sourceRef="subprocess" targetRef="end1" />
    <endEvent id="end1" />

    <sequenceFlow sourceRef="gtw" targetRef="task" />
    <userTask id="task" />
    <sequenceFlow sourceRef="task" targetRef="end2" />
    <endEvent id="end2" />

  </process>

</definitions>
